package com.wanmait.bootdemo.controller;

import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

//@Controller
@RestController //=@Controller+ResponseBody
public class HelloController {
    @RequestMapping("/hello")
//    @ResponseBody
    public String hello(String name) {
        return "hellohhhhh" + name + "ghjkfdg";
    }
}
